class TwoDecorator extends Decorator {
    TwoDecorator(Component component) {
        super(component);
    }

    private void after() {
        System.out.println("this method run after doSomething().");
    }

    @Override
    public void doSomething() {
        super.doSomething();
        this.after();
    }
}
